package com.aos.erp.schools.service.car;


import com.aos.erp.common.exception.BizException;
import com.aos.erp.schools.model.car.Car;
import com.aos.erp.schools.model.car.CarVo.CarVo;
import com.aos.erp.schools.model.car.Dto.CarDto;
import com.baomidou.mybatisplus.core.metadata.IPage;

public interface CarService {

    Car getById(long id);

    void addBean(CarDto carDto) throws BizException;

    /**
     * @param pageIndex
     * @param pageSize
     * @param carNumbers      车牌号码
     * @param registerTime    开始时间
     * @param schoolDepCode   驾校部门组织code
     * @return
     */
    IPage<CarVo> queryByPage(Integer pageIndex, Integer pageSize, String carNumbers, String registerTime, String schoolDepCode);

    /**
     * 删除车辆
     * @param id
     * @return
     */
    int isDel(String id) throws Exception;

    void updateObject(CarDto carDto);

    CarVo getInfo(String id);
}